import Herotestw.KamenRider;
import java.util.Scanner;

public class KamenRiderTest{
    public static void main(String[] args) {
        System.out.println("#1 测试子类调用父类构造方法的情况");
        KamenRider ka1 = new KamenRider();
        KamenRider ka2 = new KamenRider("名字", 0 ,100, 100," ");
        System.out.println("");

        System.out.println("#2");
        System.out.println("1. 调用了子类重写后的方法，会输出子类重写后的内容");
        ka1.target();
        System.out.println("2. 调用了被重写的父类方法,相当于找容器把父类装起来了，会输出元父类内容");
        ka1.reuseSuperTarget();
        System.out.println("");

        Scanner input = new Scanner(System.in);
        System.out.println("请输入英雄名");
        String inputn = input.nextLine();
        System.out.println("请输入年龄");
        int inputa = input.nextInt();
        System.out.println("请输入攻击力");
        int inputf = input.nextInt();
        System.out.println("请输入防御力");
        int inputd = input.nextInt();
        input.nextLine(); //接收掉nextint的空格
        System.out.println("请输入技能");
        String inputs = input.nextLine();
        System.out.println("输入骑士名");
        String printr = input.nextLine();
        System.out.println("输入口头禅");
        String printm = input.nextLine();
        ka2.setRiderInfo(inputn,inputa,inputf,inputd,inputs,printr,printm);
        ka2.getRiderInfo();
        input.close();
    }
}